package method;

public class Test {
    public static void main(String[] args) {
        CreamFactory appleFactory  = new AppleIceCreamFactory();
        IceCream appleIce = appleFactory.createIceCream();
        appleIce.eat();


        CreamFactory cherryFactory = new CherryCreamFactory();
        IceCream cherryIce = cherryFactory.createIceCream();
        cherryIce.eat();

    }}

